package com.frank.subject.application.convert;

import com.frank.subject.application.dto.SubjectCategoryDto;
import com.frank.subject.domain.entity.SubjectCategoryBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目分类转换BO
 * @author Climb Zou
 * @version v0.0.1
 * @date 2024/1/19 17:22
 */
@Mapper
public interface SubjectCategoryDtoConverter {

    SubjectCategoryDtoConverter INSTANCE = Mappers.getMapper(SubjectCategoryDtoConverter.class);

    SubjectCategoryBo convertDtoToBo(SubjectCategoryDto subjectCategoryDTO);

    List<SubjectCategoryDto> convertBoListToDtoList(List<SubjectCategoryBo> subjectCategoryBoList);
}
